package com.fwx.controller;

import com.fwx.services.CustomerServer;
import com.fwx.services.EmpServer;
import com.fwx.services.iml.EmpServerImp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author fengwenxiang
 * @date 2022/11/16 20:41
 * @description
 */
@RestController
public class EmpController {
    @Autowired
    private EmpServer empServer;
    @GetMapping("/emp")
    public List getEmployee(){
        //加油啊  封荀彧
        return empServer.allEmployee();
    }
}
